package com.dianning.web.action.jiaoyou;

import java.util.List;
import org.apache.commons.logging.*;

import com.dianning.service.ParameterService;
import com.dianning.web.action.BaseAction;

public class Index extends BaseAction{

	private static final Log logger = LogFactory.getLog(Index.class);
	
	private ParameterService parameterService;
	
	public ParameterService getParameterService() {
		return parameterService;
	}

	public void setParameterService(ParameterService parameterService) {
		this.parameterService = parameterService;
	}
	
	private List jiaoyouGaoxiao;
	private List jiaoyouGongyi;
	private List jiaoyouLvyou;
	private List jiaoyouNanyou;
	private List jiaoyouNvyou;
	private List jiaoyouXuanshang;

	public List getJiaoyouGaoxiao() {
		return jiaoyouGaoxiao;
	}

	public void setJiaoyouGaoxiao(List jiaoyouGaoxiao) {
		this.jiaoyouGaoxiao = jiaoyouGaoxiao;
	}

	public List getJiaoyouGongyi() {
		return jiaoyouGongyi;
	}

	public void setJiaoyouGongyi(List jiaoyouGongyi) {
		this.jiaoyouGongyi = jiaoyouGongyi;
	}

	public List getJiaoyouLvyou() {
		return jiaoyouLvyou;
	}

	public void setJiaoyouLvyou(List jiaoyouLvyou) {
		this.jiaoyouLvyou = jiaoyouLvyou;
	}

	public List getJiaoyouNanyou() {
		return jiaoyouNanyou;
	}

	public void setJiaoyouNanyou(List jiaoyouNanyou) {
		this.jiaoyouNanyou = jiaoyouNanyou;
	}

	public List getJiaoyouNvyou() {
		return jiaoyouNvyou;
	}

	public void setJiaoyouNvyou(List jiaoyouNvyou) {
		this.jiaoyouNvyou = jiaoyouNvyou;
	}

	public List getJiaoyouXuanshang() {
		return jiaoyouXuanshang;
	}

	public void setJiaoyouXuanshang(List jiaoyouXuanshang) {
		this.jiaoyouXuanshang = jiaoyouXuanshang;
	}

	public String execute() {
		this.setJiaoyouGaoxiao(this.getParameterService().findParameters("jiaoyouGaoxiaoType", 2, null,"orders", 0));
		this.setJiaoyouGongyi(this.getParameterService().findParameters("jiaoyouGongyiType", 2, null,"orders", 0));
		this.setJiaoyouLvyou(this.getParameterService().findParameters("jiaoyouLvyouType", 2, null,"orders", 0));
		this.setJiaoyouNanyou(this.getParameterService().findParameters("jiaoyouNanyouType", 2, null,"orders", 0));
		this.setJiaoyouNvyou(this.getParameterService().findParameters("jiaoyouNvyouType", 2, null,"orders", 0));
		this.setJiaoyouXuanshang(this.getParameterService().findParameters("jiaoyouXuanshangType", 2, null,"orders", 0));
		return SUCCESS;
	}
}
